export {}
function createNumberArray(length:number, value:number) :number[]{
    // const arr  = new Array<number>(length).fill(value)
    const arr2:Array<number> = [12]
    return  arr2;
}

createNumberArray(3,100);


function createArray<T>(length:number, value:T) :T[]{
    const arr  = new Array<T>(length).fill(value)
    return  arr;
}

createArray<string>(2,'23');